/*
 * @Description:
 * @Author: xinqiao lxq1990.0716@qq.com
 * @Date: 2025-03-25
 * @LastEditors: xinqiao lxq1990.0716@qq.com
 * @LastEditTime: 2025-03-27
 */
const { analysisApis, analysisModels } = require('@ssc-plugin/mock/build/index.ts')

// 解析接口index.ts，并生成接口与接口模型的关系
analysisApis({
  fromFolder: '/src/api',
  fromFilterFile: 'index.ts',
  toFolder: '/mock/output',
  toFile: 'api.ts',
})

// 解析接口模型model.d.ts，并生成接口模型内容
analysisModels({
  fromFolder: '/src/api',
  fromFilterFile: 'model.d.ts',
  toFolder: '/mock/output',
  toFile: 'model.ts',
})
